package com.lry.handler;

import com.lry.bean.ExceptionNotice;
import com.lry.bean.HttpExceptionNotice;

import java.util.Map;

public interface ExceptionHandler {

    ExceptionNotice createNotice(RuntimeException e, String methodName, Object[] args);

    HttpExceptionNotice createHttpNotice(RuntimeException exception, String url, Map<String, String> param,
                                         String requestBody, Map<String, String> headers);
}
